package com.bocloud.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018/12/19.
 */
public class Role implements Serializable {
    private String roleId;//角色编号
    private String roleName;//角色名称
    private String pid;//角色的上级id
    private List<Role> children;   //用于存储子节点

    public Role() {
    }

    public Role(String roleId, String roleName, String pid, List<Role> children) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.pid = pid;
        this.children = children;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public List<Role> getChildren() {
        return children;
    }

    public void setChildren(List<Role> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Role{" +
                "roleId='" + roleId + '\'' +
                ", roleName='" + roleName + '\'' +
                ", pid='" + pid + '\'' +
                ", children=" + children +
                '}';
    }
}
